<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title></title>
</head>

<body>
</body>

</html>
<script type="text/javascript">
    // 不改变原数组
    // concat		多个数组拼成一个
    var aaa1 = [111, 111]
    var aaa2 = [222, 222]
    var aaa3 = [333, 333]
    var aaa = aaa1.concat(aaa2, aaa3)
    console.log(aaa)

    // toString		数组转成字符串
    var bbb = [1, 2, 3, 4]
    var bbb1 = bbb.toString()
    console.log(bbb1)


    // slice		截取，起始位置，终止位置(不包括终止位置)，终止不写，表示一直去到最后
    var ccc = [1, 2, 3, 4, 5, 6]
    var ccc1 = ccc.slice(1, 3)
    var ccc2 = ccc.slice(1)
    console.log(ccc1)
    console.log(ccc2)
</script>